home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / MorphOS / Epic4_mos / share / epic / help / 5_programming / load < prev    next >
Encoding:
Text File  |  2002-10-28  |  1.7 KB  |  40 lines

  1. Synopsis:
  2.    load [-args] <file> [<file> ...]
  3.  
  4. Description:
  5.    LOAD allows for commands contained in external files to be executed.
  6.    This has the obvious use of setting up aliases and hooks without having
  7.    to type each one in individually.  The .ircrc file, for example, it
  8.    automatically loaded when the client is started (assuming the -q switch
  9.    isn't used).
  10.  
  11.    When attempting to load a script, the client will first search the
  12.    directories in the LOAD_PATH for the desired file.  The client will
  13.    also accept an absolute pathname.
  14.  
  15.    The syntax of an ircII-EPIC script file is rather relaxed.  It mostly
  16.    resembles C code, aesthetically.  As with C, whitespace is usually not
  17.    significant, except in literal text.  Curly braces used for complex
  18.    commands may be placed anywhere.
  19.    
  20.    As with the input line, commands issued directly in a loaded script
  21.    are, by default, not evaluated.  This means that aliases and functions
  22.    will not be expanded, and semicolons are not honored.  This can be
  23.    overridden script-wide with the -args switch, or by turning the
  24.    INPUT_ALIASES setting on inside the script.  EVAL should be used if
  25.    only select lines need to be evaluated.
  26.  
  27. Options:
  28.    -args   This switch causes the script to be loaded with INPUT_ALIASES
  29.            turned on.  In addition, commands may use the special numeric
  30.            expandos ($*, $2, etc.), which will expand to the arguments
  31.            passed to LOAD.
  32.  
  33. See Also:
  34.    cd(4); set(4) input_aliases, load_path; stub(5); which(4); which(8)
  35.  
  36. Other Notes:
  37.    A large collection of sample scripts is included with the client.  Refer
  38.    to Section 8, the Script Library, for more information.
  39.  
  40.